<?php

$config = require(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common_config.php');
$database = array(
    'cache' => array(
        //'class' => 'OSCMemcached',
        'class' => 'CMemCache',
//        'osc' => array(
//            array(
//                'host' => '2b775095126611e4.m.cnhzalicm10pub001.ocs.aliyuncs.com',
//                'port' => 11211,
//                'weight' => 60,
//                'username' => '2b775095126611e4',
//                'password' => 'Sefsw24104445',
//            ),
//        ),
        'servers' => array(
            array(
                'host' => '10.168.82.94',
                //'host' => '127.0.0.1',
                'port' => 11211,
                'weight' => 60,
            ),
        ),
    ),
    'db' => array(
        'connectionString' => "mysql:host=rdsbj36fybj36fy.mysql.rds.aliyuncs.com;dbname=mmj",
        'emulatePrepare' => true,
        'username' => 'mamijie',
        'password' => 'mamijie_yzwyang1314520',
        'charset' => 'utf8',
        'tablePrefix' => 'tk_',
    ),
    //妈咪街统计相关的连接数据库
    'db_count' => array(
        'class'=>'CDbConnection',
        'connectionString' => "mysql:host=rdsbj36fybj36fy.mysql.rds.aliyuncs.com;dbname=mmjcount",
        'emulatePrepare' => true,
        'username' => 'mamijie',
        'password' => 'mamijie_yzwyang1314520',
        'charset' => 'utf8',
        'tablePrefix' => 'tk_',
    ),
);
$config['components'] = CMap::mergeArray($config['components'], $database);
return $config;
